<extend name="Base/base" />
<block name='head'>
    <link rel="stylesheet" type="text/css" href="/Public/Admin/css/personal.css"/>
    <link href="/Public/Admin/css/new_plan.css" rel="stylesheet" />
    <link rel="stylesheet" type="text/css" href="/Public/Admin/css/diary.css"/>
    <!--文件上传-->
    <script type="text/javascript" src="/Public/Cropper/js/ajaxfileupload.js" ></script>
    <style>
        .textarea{height:50px;width:90%}
        .checkCont p{float:left;}
        .checkCont a{margin-left:10px;display: inline-block;}
        .fujian{margin:0;}
        .c-red{color:red}
        .pointer{cursor: pointer}
        .deptList th{text-align:center;}
        .deptList td{text-align:center;}
        ul.dynatree-container a.cur_user{color:#0066cc;font-weight:bolder;font-size:15px;}
        #larry-body{background:#fff;}
    </style>
</block>
<block name="content" >
    <section class="layui-larry-box mian-page page-attendanceStatistics">
	<div class="larry-personal">
            <div class="layui-tab">
                <div class="layui-tab-item layui-field-box layui-show " >
                    <div class="userinfo" style="width:100%;margin: 10px auto;">
                        <a class="on top pointer" data-type="unit">单位信息</a>
                        <a class="top pointer" data-type="dept">部门信息</a>
                        <a class="top pointer" data-type="user">用户信息</a>
                        <div class="info unit" style='margin-top:20px;'>
                            <table class="table table-bordered">
                                <colgroup>
                                    <col width="100">
                                    <col width="400">
                                </colgroup>
                                <thead>
                                    <tr>
                                        <td colspan="2">基本信息</td>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr class="TableData">
                                        <td class="td-head">单位名称：</td>
                                        <td>
                                            <input name="unit_name" class="layui-input" value="{$unit.unit_name}" type="text" readonly>
                                        </td>
                                    </tr>
                                    <tr class="TableData">
                                        <td class="td-head">电话：</td>
                                        <td>
                                            <input name="tel_no" class="layui-input" value="{$unit.tel_no}" type="text" readonly>
                                        </td>
                                    </tr>
                                    <tr class="TableData">
                                        <td class="td-head">传真：</td>
                                        <td>
                                            <input name="fax_no" class="layui-input" value="{$unit.fax_no}" type="text" readonly>
                                        </td>
                                    </tr>
                                    <tr class="TableData">
                                        <td class="td-head">邮编：</td>
                                        <td>
                                            <input name="post_no" class="layui-input" value="{$unit.post_no}" type="text" readonly>
                                        </td>
                                    </tr>
                                    <tr class="TableData">
                                        <td class="td-head">地址：</td>
                                        <td>
                                            <input name="address" class="layui-input" value="{$unit.address}" type="text" readonly>
                                        </td>
                                    </tr>
                                    <tr class="TableData">
                                        <td class="td-head">网站：</td>
                                        <td>
                                            <input name="url" class="layui-input" value="{$unit.url}" type="text" readonly>
                                        </td>
                                    </tr>
                                    <tr class="TableData">
                                        <td class="td-head">电子信箱：</td>
                                        <td>
                                            <input name="email" class="layui-input" value="{$unit.email}" type="text" readonly>
                                        </td>
                                    </tr>
                                    <tr class="TableData">
                                        <td class="td-head">开户行：</td>
                                        <td>
                                            <input name="bank_name" class="layui-input" value="{$unit.bank_name}" type="text" readonly>
                                        </td>
                                    </tr>
                                    <tr class="TableData">
                                        <td class="td-head">账号：</td>
                                        <td>
                                            <input name="bank_no" class="layui-input" value="{$unit.bank_no}" type="text" readonly>
                                        </td>
                                    </tr>
                                    <tr class="TableData">
                                        <td colspan="2">
                                            <font style="font-weight:bolder">单位简介</font><p>{$unit.content}</p>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                        </div>
                        <div class="account dept" style="display:none;margin-top:20px;">
                            <table class="table table-bordered deptList">
                                <thead style='background-color:#ecf3f9'>
                                    <th>部门名称</th>
                                    <th>部门主管</th>
                                    <th>部门助理</th>
                                    <th>主管领导</th>
                                    <th>分管领导</th>
                                    <th>电话</th>
                                    <th>传真</th>
                                    <th>职能</th>
                                </thead>
                                <foreach name='department' item='data'>
                                    <tr>
                                        <td>{$data.dept_name}</td>
                                        <td>
                                            <if condition="$data['manager'] neq ''">
                                                <foreach name='data["manager_name"]' item="manager">
                                                    {$manager|getChineseName},
                                                </foreach>
                                            </if>
                                        </td>
                                        <td>
                                            <if condition="$data['assistant_id'] neq ''">
                                                <foreach name='data["assistant_name"]' item="assistant">
                                                    {$assistant|getChineseName},
                                                </foreach>
                                            </if>
                                        </td>
                                        <td>
                                            <if condition="$data['leader1'] neq ''">
                                                <foreach name='data["leader1_name"]' item="leader1">
                                                    {$leader1|getChineseName},
                                                </foreach>
                                            </if>
                                        </td>
                                        <td>
                                            <if condition="$data['leader2'] neq ''">
                                                <foreach name='data["leader2_name"]' item="leader2">
                                                    {$leader2|getChineseName},
                                                </foreach>
                                            </if>
                                        </td>
                                        <td>{$data.tel_no}</td>
                                        <td>{$data.fax_no}</td>
                                        <td>{$data.dept_func}</td>
                                    </tr>
                                </foreach>
                            </table>
                        </div>
                        <div class="account userManage" style="display:none;margin-top:20px;">
                            <div class="containers treeList" id="container_1" style="border-top:1px #e6e6e6 solid;float: left;">
                                <div id="tree">
                                    <ul class="dynatree-container dynatree-no-connector">
                                        <li class="dynatree-lastsib">
                                            <span class="dynatree-node dynatree-folder dynatree-expanded dynatree-has-children dynatree-lastsib dynatree-exp-el dynatree-ico-ef">
                                                <img src="/Public/admin/images/root.png" alt="">
                                                <a href="#" class="dynatree-title" title="江苏省城市轨道交通研究设计院股份有限公司">江苏省城市轨道交通研究设计院股份有限公司</a>
                                            </span>
                                            <ul style="">
                                                <foreach name="department" item="dept">
                                                    <li class="deptName" data-id="{$dept.dept_id}">
                                                        <span class=" dynatree-node dynatree-folder dynatree-has-children dynatree-lazy dynatree-exp-cd dynatree-ico-cf">
                                                            <a href="#" class="dynatree-title" title="{$dept.dept_name}">>{$dept.dept_name}</a>
                                                        </span>
                                                    </li>
                                                </foreach>
                                            </ul>
                                        </li>
                                    </ul>
                                </div>
                                <div>
                                    <span class="dynatree-node dynatree-folder dynatree-expanded dynatree-has-children dynatree-lastsib dynatree-exp-el dynatree-ico-ef">
                                        <img src="/Public/admin/images/root.png" alt="">
                                        <a class="dynatree-title search_user" title="">人员查询</a>
                                    </span>
                                </div>
                            </div>
                            <div class="" style="border:0px solid red;width:80%;height:600px;float: left;margin-left:20px;">
                                <form class="layui-form" id="userSearch" action="">
                                    <table class="TableBlock table1" width="100%" align="center">
                                        <tbody>
                                            <tr>
                                                <td class="TableData" width="120" nowrap="">用户名：</td>
                                                <td class="TableData" nowrap="">
                                                    <input name="user_id" class="layui-input" value="" type="text"  >
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="TableData" nowrap="">真实姓名：</td>
                                                <td class="TableData" nowrap="">
                                                    <input name="user_name" class="layui-input" value="" type="text"  >
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="TableData" nowrap="">手机：</td>
                                                <td class="TableData" nowrap="">
                                                    <input name="mobil_no" class="layui-input" value="" type="text"  >
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="TableData" nowrap="">部门：</td>
                                                <td class="TableData" nowrap="">
                                                    <select name="dept_id" class="layui-input search_input">
                                                        <option value=""></option>
                                                        <foreach name="department" item="top">
                                                            <option value="{$top.dept_id}" {$dept_id == $top['dept_id'] ? 'selected' : ''}>{$top.dept_name}</option>
                                                        </foreach>
                                                    </select>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="TableData" nowrap="">性别：</td>
                                                <td class="TableData" nowrap="">
                                                    <select name="sex" class="layui-input search_input">
                                                        <option value=""></option>
                                                        <option value="0">男</option>
                                                        <option value="1">女</option>
                                                    </select>
                                                </td>
                                            </tr>
                                            <tr>
                                                <td class="TableControl" colspan="2" nowrap="" align="center">
                                                    <a class="layui-btn search_btn searchUser" data-url="{:U('searchUser')}" style="margin-left:10px;"> 提交查询</a>
                                                    <!--<a class="layui-btn search_btn exportUser" data-url="{:U('exportUser')}" style="margin-left:10px;"> 导出</a>-->
                                                </td>
                                            </tr>
                                        </tbody>
                                    </table>
                                </form>
                                <div class="detail"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
</block>
<block name="script">
    <script type="text/javascript" src="/Public/Admin/js/system.js"></script>
    <script type="text/javascript">
        $(initSystem());
    </script>
</block>
